package com.lubase.metadata.service;

import com.lubase.metadata.model.ColumnMetaModel;
import com.lubase.metadata.model.ConstraintMetaModel;
import com.lubase.metadata.model.TableMetaModel;

import java.util.List;

/**
 * 具体某个类型的数据库元数据读取服务
 */
public interface SpecificMetadataReadService {
    String databaseType();

    List<TableMetaModel> getTableList(String databaseCode);

    List<ColumnMetaModel> getTableColumnListByDatabase(String databaseCode);

    List<ConstraintMetaModel> getTableConstraintList(String databaseCode);
}
